import Vue from 'vue'
import VueRouter from 'vue-router';
import home from '../views/home.vue';
import Mybutton from '../views/My-button/My-button'

Vue.use(VueRouter)

const routes = [
    {
        path: '/',
        redirect: 'home',
        name: 'home',
        component:home
    },
    {
        path: '/button',
        component: Mybutton
    }
]

const router = new VueRouter({
    routes
  })

export default router